window.onload = function() {
	var webview = document.getElementById("wxview");
	webview.src = "https://im.dingtalk.com";
	webview.addEventListener('loadcommit',function(e) {
		webview.insertCSS({file: "css/inject.css"});
	});

	webview.addEventListener('contentload', function(e) {
	});

	var mini_icon = document.getElementById("min");
	mini_icon.onclick = function(){
		chrome.app.window.current().minimize();
	}
}
